Inheritance diagram for Exponent::GUI::Controls::CTextEdit:

Definition at line 46 of file CTextEdit.hpp.
| Exponent::GUI::Controls::CTextEdit::CTextEdit | ( | IControlRoot * | root, | |
| const long | uniqueId, | |||
| const CRect & | area, | |||
| const CString & | text, | |||
| IActionListener * | listener = NULL | |||
| ) |
Construction
| root | The root control that this control is being added to | |
| uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
| area | The area of this control relative to the root controls top left | |
| text | The text to display | |
| listener | The action listener |
| virtual Exponent::GUI::Controls::CTextEdit::~CTextEdit | ( | ) | [virtual] |
Destruction
| virtual void Exponent::GUI::Controls::CTextEdit::cancelCall | ( | const bool | cancel | ) | [inline, virtual] |
Is this a cancel call to handleActionEvent?
| cancel | True if is a cancel call |
Definition at line 174 of file CTextEdit.hpp.
References m_cancel.
| virtual void Exponent::GUI::Controls::CTextEdit::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the controls
| graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CTextLabel.
| virtual const CString& Exponent::GUI::Controls::CTextEdit::getString | ( | ) | const [inline, virtual] |
Get the string
| const | CString & The text |
Definition at line 146 of file CTextEdit.hpp.
References Exponent::GUI::Controls::CTextLabel::m_text.
| virtual TXNObject Exponent::GUI::Controls::CTextEdit::getTxnHandle | ( | ) | const [inline, virtual] |
Get the TXNObject associated with the edit
| TXNObject | The editor handle |
Definition at line 167 of file CTextEdit.hpp.
References m_txnHandle.
| virtual void Exponent::GUI::Controls::CTextEdit::handleActionEvent | ( | const CActionEvent & | event | ) | [virtual] |
Handle events - NOT INTENDED FOR PUBLIC USE!!
| event | The event to handle |
| virtual void Exponent::GUI::Controls::CTextEdit::handleDoubleClick | ( | CMouseEvent & | event | ) | [virtual] |
Handle a double click on the left button
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CTextEdit::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| void Exponent::GUI::Controls::CTextEdit::launchEdit | ( | CMouseEvent & | event | ) | [protected] |
Launch the edit
| event | The mouse event that triggered |
| virtual void Exponent::GUI::Controls::CTextEdit::limitText | ( | const bool | limitText = false, |
|
| const long | textLimit = 256 | |||
| ) | [virtual] |
Should we limit the text
| limitText | If true text is limited to to textLimit numberof characters. If false then text is not limited | |
| textLimit | If limitText is true, this parameter defines the number of limited characters |
| virtual void Exponent::GUI::Controls::CTextEdit::setAlignment | ( | const ETextEditAlignment | alignment | ) | [inline, virtual] |
Set text alignment
| alignment | The alignment to draw the text with |
Definition at line 127 of file CTextEdit.hpp.
References m_alignment.
| virtual void Exponent::GUI::Controls::CTextEdit::setEditable | ( | const bool | editable = true |
) | [inline, virtual] |
Are we editable?
| editable | If true the text is editable, if false this becomesa CTextLabel |
Definition at line 134 of file CTextEdit.hpp.
References m_isEditable.
| LRESULT Exponent::GUI::Controls::CTextEdit::setEditWindowDrawConditions | ( | HDC | drawContext | ) |
Dirty little hack in to the edit window, so that we can correctly set the background colour fo the box.
| drawContext | The drawing context for the edit box |
| LRESULT | Handle to the brush |
| virtual void Exponent::GUI::Controls::CTextEdit::setSingleClickEditable | ( | const bool | editable = true |
) | [inline, virtual] |
Set single click editable
| editable | If true then a single click will trigger an edit event. A double click will not be handlded in this case |
Definition at line 140 of file CTextEdit.hpp.
References m_singleClickEdit.
| static pascal OSStatus Exponent::GUI::Controls::CTextEdit::windowProcTextEdit | ( | EventHandlerCallRef | inHandlerCallRef, | |
| EventRef | inEvent, | |||
| void * | inUserData | |||
| ) | [static, protected] |
Call back function for the window
| inHandlerCallRef | Event handler reference | |
| inEvent | The event to handle | |
| inUserData | A reference to the CTextEdit that created the window |
| pascal | OSStatus The status of the event |
| static LONG WINAPI Exponent::GUI::Controls::CTextEdit::windowProcTextEdit | ( | HWND | windowHandle, | |
| UINT | message, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) | [static, protected] |
Call back function for the window
| windowHandle | Handle to the edit window | |
| message | The event to handle | |
| wParam | The event high bits | |
| lParam | The event low bits |
| LONG | The window handler result |
CBrush Exponent::GUI::Controls::CTextEdit::m_brush [protected] |
The brush
Definition at line 234 of file CTextEdit.hpp.
bool Exponent::GUI::Controls::CTextEdit::m_cancel [protected] |
HWND Exponent::GUI::Controls::CTextEdit::m_editWindowHandle [protected] |
handle to the edit window
Definition at line 231 of file CTextEdit.hpp.
bool Exponent::GUI::Controls::CTextEdit::m_isEditable [protected] |
WNDPROC Exponent::GUI::Controls::CTextEdit::m_lastWinProc [static, protected] |
The main window proc
Definition at line 232 of file CTextEdit.hpp.
bool Exponent::GUI::Controls::CTextEdit::m_limitText [protected] |
Should the text be limited
Definition at line 245 of file CTextEdit.hpp.
The last locked control
Definition at line 233 of file CTextEdit.hpp.
bool Exponent::GUI::Controls::CTextEdit::m_singleClickEdit [protected] |
Can we be edited by a single click
Definition at line 249 of file CTextEdit.hpp.
Referenced by setSingleClickEditable().
EventHandlerRef Exponent::GUI::Controls::CTextEdit::m_textEditEventHandler [protected] |
Event handler
Definition at line 239 of file CTextEdit.hpp.
long Exponent::GUI::Controls::CTextEdit::m_textLimit [protected] |
If so what is the character limit
Definition at line 246 of file CTextEdit.hpp.
TXNObject Exponent::GUI::Controls::CTextEdit::m_txnHandle [protected] |
Handle to the edit window
Definition at line 238 of file CTextEdit.hpp.
Referenced by getTxnHandle().